<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center APPMessageOne_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub APPMessageOne_fd0_0'>
					<view class='flex flex-wrap align-center APPMessageOne_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  APPMessageOne_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<text class='APPMessageOne_fd0_0_c1'>平台消息</text>
					<view class='flex flex-wrap align-center APPMessageOne_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---平台消息flex布局开始-->
			<view
				class="flex flex-direction flex-wrap align-stretch justify-center benben-flex-layout APPMessageOne_flex_1">
				<template v-for='(item,key0) in noticeList'>
					<view class='flex flex-direction flex-wrap align-stretch APPMessageOne_fd1_0'
						@tap.stop="handleJumpDiy" data-type="navigateTo"
						:data-url="`/pages/my/messageDetailOne/messageDetailOne?id=${item.aid}`" :key='key0'>
						<view class='flex flex-wrap align-center justify-between'>
							<text class='flex-sub APPMessageOne_fd1_0_c0_c0'>{{item.title}}</text>
							<text class='APPMessageOne_fd1_0_c0_c1' v-if=" item.is_read=='1'">已读</text>
							<text class='APPMessageOne_fd1_0_c0_c2' v-if=" item.is_read==0">未读</text>
						</view>
						<text class='APPMessageOne_fd1_0_c1'>{{item.content}}</text>
						<view class='flex flex-direction align-stretch APPMessageOne_fd1_0_c2'>
							<text class='APPMessageOne_fd1_0_c2_c0'>{{item.create_time}}</text>
						</view>
					</view>
				</template>
				<fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
					:listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
			</view>

			<!---平台消息flex布局结束-->


		</view>
	</view>
</template>
<script>
	import pagingList from '@/common/mixin/paging_list.js';
	import {
		validate
	} from '@/common/utils/validate.js'

	export default {
		components: {},
		mixins: [pagingList],

		data() {
			return {
				"minixPagingListsApi": "",
				"pageingListApiMethod": "",
				"allowOnloadGetList": false,
				"shopID": uni.getStorageSync('shopID') || '',
				"noticeList": []
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {
			this.shopID = uni.getStorageSync('shopID') || ''
			this.getNoticeFunc()
		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			//获取平台公告信息
			getNoticeFunc() {
				this.minixPagingListsApi = global.apiUrls.post63f9aaee63556;
				this.pageingListApiMethod = 'get';
				this.allowOnloadGetList = false;
				this.pagingListPostDataContent = {
					type: '1'
				}
				this.listData = [];
				this.noticeList = this.listData;
				this.pagingListToggle();

			},
			pagingListPostData() {
				return this.pagingListPostDataContent
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(246, 247, 249, 1);
		background-size: 100% auto;
	}

	.APPMessageOne_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.APPMessageOne_fd0_0_c1 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.APPMessageOne_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
	}

	.APPMessageOne_fd0_0_c0 {
		width: 120rpx;
		height: 88rpx;
	}

	.APPMessageOne_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
		height: 88rpx;
	}

	.APPMessageOne_flex_1 {
		padding: 24rpx 24rpx 0rpx 24rpx;
	}

	.APPMessageOne_fd1_0_c2_c0 {
		line-height: 33rpx;
		font-size: 24rpx;
		font-weight: 400;
		color: #999999;
	}

	.APPMessageOne_fd1_0_c2 {
		border-top: 1px solid #eee;
		padding: 32rpx 0rpx 32rpx 0rpx;
	}

	.APPMessageOne_fd1_0_c1 {
		line-height: 42rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #666666;
		-webkit-line-clamp: 2;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		margin: 0rpx 0rpx 32rpx 0rpx;
	}

	.APPMessageOne_fd1_0_c0_c2 {
		background: #eee;
		padding: 6rpx 8rpx 6rpx 8rpx;
		color: var(--benbenFontColor5);
		background-size: 100% auto;
	}

	.APPMessageOne_fd1_0_c0_c1 {
		background: #eee;
		padding: 6rpx 8rpx 6rpx 8rpx;
		color: var(--benbenFontColor0);
		background-size: 100% auto;
	}

	.APPMessageOne_fd1_0_c0_c0 {
		line-height: 45rpx;
		font-size: 32rpx;
		font-weight: 700;
		color: #333333;
		-webkit-line-clamp: 1;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		margin: 32rpx 0rpx 24rpx 0rpx;
	}

	.APPMessageOne_fd1_0 {
		background: #fff;
		padding: 0rpx 24rpx 0rpx 24rpx;
		background-size: 100% auto !important;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}
</style>